package net.funtip.jdbc.entity;

import java.util.Map;

public interface QueryStatistic extends Comparable<QueryStatistic> {

	public Long getId();

	public void setId(Long id);

	public int getPercentage();

	public void setPercentage(int percentage);

	public int getExecutionCount();

	public void setExecutionCount(int executionCount);

	public long getExecutionTime();

	public void setExecutionTime(long executionTime);

	public String getName();

	public void setName(String name);

	public long getNextCount();

	public void setNextCount(long nextCount);

	public long getNextTime();

	public long getTotalTime();

	public void setNextTime(long nextTime);

	public void addExecution(long time, long resultSetSize);

	public void addNext(long time);

	public void add(QueryStatistic qs);
	
	public double getAverageExecutionTimeInSec();
	
	public void addParametersForExecution(ParameterSet params);

	public Map<ParameterSet,Integer> getParameterExecutionHistogram();
	
}
